//
//  ZYComponentRegister.m
//  DesignMode
//
//  Created by wangzhipan on 2024/11/7.
//

#import "ZYComponentRegister.h"
#import "ZYCompositeImp.h"

@implementation ZYComponentRegister
@synthesize componentId;
@synthesize priority;
- (nonnull instancetype)initWithComponentId:(nonnull NSString *)componentId priority:(NSUInteger)priority
{
    if (self = [super init]) {
        self.componentId = componentId;
        self.priority = priority;
    }
    return self;
}

- (nonnull id<IComponent>)generateComponent
{
    return [[ZYComponent alloc] initWithComponentId:self.componentId priority:self.priority];
}
@end
